package com.fybspace;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by studio on 2017/4/27.
 */

//REST模式
@RestController
@SpringBootApplication
@EnableAutoConfiguration
public class Application {

    @RequestMapping("/hello")
    public String hello(){
        return "你好，魔法师！";
    }

    public static void main(String args[]){
        SpringApplication.run(Application.class,args);
    }

}
